package com;

import com.common.service.UserService;
import com.ljp.RpcApplication;
import com.ljp.registry.LocalRegistry;
import com.ljp.server.Server;
import com.ljp.server.http.VertxHttpServer;

/**
 * ClassName: EasyProviderExample
 * Package: com
 * Description:
 *
 * @Author: ljp
 * @Create: 2025/6/3-下午 05:54
 * @Version: 1.0
 */
public class EasyProviderExample {
    public static void main(String[] args) {
        // 初始化RPC框架
        RpcApplication.init();
        // 提供服务
        // 注册服务
        LocalRegistry.register(UserService.class.getName(), UserServiceImpl.class);
        // 启动服务
        Server server = new VertxHttpServer();
        server.doStart(8080);
    }
}
